package com.ibeetl.admin.console.service.stat;

import com.ibeetl.admin.console.dao.stat.CoinStatDao;
import com.ibeetl.admin.console.dao.stat.ScoreStatDao;
import com.ibeetl.admin.core.entity.stat.CoinStat;
import com.ibeetl.admin.core.entity.stat.ReportStat;
import com.ibeetl.admin.core.entity.stat.ScoreStat;
import com.ibeetl.admin.core.service.BaseService;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ScoreStatService extends BaseService<ReportStat> {

	@Autowired
	ScoreStatDao scoreStatDao;

	/**
	 * 根据条件查询
	 *
	 * @param query
	 */
	public void queryByCondtion(PageQuery<ScoreStat> query) {
		PageQuery<ScoreStat> ret = scoreStatDao.queryByCondtion(query);
		queryListAfter(ret.getList());
	}


    public List<ScoreStat> queryExcel(PageQuery<ScoreStat> query) {
		PageQuery<ScoreStat> ret = scoreStatDao.queryByCondtion(query);
		List<ScoreStat> list = ret.getList();
		return list;
    }
}
